home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / TEMP / GNU / flex / Descriptio < prev    next >
Text File  |  1995-06-28  |  855b  |  20 lines

  1. Description
  2. Previous: <Overview=>Overview> * Next: <Examples=>Examples> * Up: <Top=>!Root>
  3.  
  4. #Wrap on
  5. {fH3}Description{f}
  6.  
  7. {fCode}flex{f} is a tool for generating {fUnderline}scanners{f}: programs which
  8. recognized lexical patterns in text.  {fCode}flex{f} reads the given
  9. input files, or its standard input if no file names are
  10. given, for a description of a scanner to generate.  The
  11. description is in the form of pairs of regular expressions
  12. and C code, called {fUnderline}rules{f}. {fCode}flex{f} generates as output a C
  13. source file, {fCite}lex.yy.c{f}, which defines a routine {fEmphasis}yylex(){f}.
  14. This file is compiled and linked with the {fEmphasis}-lfl{f} library to
  15. produce an executable.  When the executable is run, it
  16. analyzes its input for occurrences of the regular
  17. expressions.  Whenever it finds one, it executes the
  18. corresponding C code.
  19.  
  20.